import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
import PageView from '@/layouts/PageView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404')
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403')
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        // {
        // 	path: 'dashboard',
        // 	name: '首页',
        // 	meta: {
        // 		icon: 'home'
        // 	},
        // 	component: BlankView,
        // 	children: [{
        // 			path: 'workplace',
        // 			name: '首页',
        // 			meta: {
        // 				page: {
        // 					closable: false
        // 				}
        // 			},
        // 			component: () => import('@/pages/dashboard/workplace'),
        // 		}
        // 	]
        // },
        {
          name: 'BANNER管理',
          path: 'banner',
          meta: {
            icon: 'picture'
          },
          component: () => import('@/pages/banner/index')
        },
        {
          name: '载体信息管理',
          path: 'trager',
          meta: {
            icon: 'usergroup-add'
          },
          component: () => import('@/pages/trager/index')
        },
        {
          name: '招商信息管理',
          path: 'courtship',
          meta: {
            icon: 'bars'
          },
          component: () => import('@/pages/courtship/index')
        },
        {
          name: '政策指南',
          path: 'policy',
          meta: {
            icon: 'book'
          },
          component: () => import('@/pages/policy/index')
        },
        {
          name: '用户管理',
          path: 'user',
          meta: {
            icon: 'user'
          },
          component: () => import('@/pages/user/index')
        }
      ]
    }
  ]
}

export default options
